package com.gym.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.gym.dao.EquipmentDao;
import com.gym.service.EquipmentService;
import com.gym.vo.EquipmentVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class EquipmentServiceImpl implements EquipmentService {

    @Resource
    private EquipmentDao equipmentDao;

    @Override
    public Page<EquipmentVo> selectAllEquipment(int index, int size) {
        Page<EquipmentVo> page = PageHelper.startPage(index, size);
        equipmentDao.selectAllEquipment();
        return page;
    }

}
